import request from '@/config/axios'

export interface MarketingReceiptVO {
  id: number
  workNumber: string
  productNumber: string
  productName: string
  drawingNumber: string
  taskNumber: string
  modelSpecification: string
  orderQuantity: number
  completeDate: localdate
  debuggingOrderUrl: string
  debuggingOrderFileName: string
  dictReceiptYesNo: number
  receiptUrl: string
  receiptFileName: string
  dictOrderStatus: number
  dictStatus: number
  creatorName: string
}

// 查询订单管理-营销管理-验收单列表
export const getMarketingReceiptPage = async (params) => {
  return await request.get({ url: `/order/marketing-receipt/page`, params })
}

// 查询订单管理-营销管理-验收单详情
export const getMarketingReceipt = async (id: number) => {
  return await request.get({ url: `/order/marketing-receipt/get?id=` + id })
}


// 修改订单管理-营销管理-验收单
export const updateMarketingReceipt = async (data: MarketingReceiptVO) => {
  return await request.post({ url: `/order/marketing-receipt/save-submit`, data })
}


// 导出订单管理-营销管理-验收单 Excel
export const exportMarketingReceipt = async (data) => {
  return await request.download({ url: `/order/marketing-receipt/export-excel`, data })
}
